var bootHref = '/zzshzc',
    bootTime = new Date().getTime(),
    bootJs = document.getElementById("bootJs"),
    bootVersion = bootJs ? bootJs.src : '',
    bootSiteid = '',
    test = window.location.pathname;
test=test.substring(test.lastIndexOf("/")).substring(1)
test=test.substring(0,test.lastIndexOf("."))
test = test||'index';
function bootGetParameter(str, _parameter) {
    var sValue = str.match(new RegExp("[?&]" + _parameter + "=([^&]*)(&?)", "i"));
    if (sValue ? sValue[1] : sValue == null)
        return sValue ? sValue[1] : sValue;
}
if (bootVersion) {
    bootSiteid = bootGetParameter(bootVersion, "v") || '';
}
//公共css引入
var publicCSS =
    '<link rel="stylesheet" href="' + bootHref + '/layui/css/layui.css?' + bootTime + '">'+
    // '<link rel="stylesheet" href="' + bootHref + '/layui-v2.6.8/css/layui.css?' + bootTime + '">'+
    '<link rel="stylesheet" href="' + bootHref + '/css/globle.css?' + bootTime + '">'+
    '<link rel="stylesheet" href="' + bootHref + '/css/number.css?' + bootTime + '">'+
    '<link rel="stylesheet" href="' + bootHref + '/tooltip/index.css">'+
    '<link  href="' + bootHref + '/viewer/viewer.css" rel="stylesheet">'+
    '<link rel="stylesheet" href="' + bootHref + '/css/pages/'+test+'.css?' + bootTime + '">';

//公共js引入
var publicJS =
    '<script src="' + bootHref + '/js/jquery-1.8.3.min.js"></script>' +
    '<script src="' + bootHref + '/js/echarts.min.js"></script> '+
    '<script src="' + bootHref + '/js/echarts-util.js" type="text/javascript" charset="utf-8"></script>'+
    '<script src="' + bootHref + '/js/echarts_fun.js?' + bootTime + '" type="text/javascript" charset="utf-8"></script>'+
    '<script src="' + bootHref + '/layui/layui.js" type="text/javascript" charset="utf-8"></script>'+
    '<script src="' + bootHref + '/js/echarts-liquidfill.min.js" ></script>'+
    // '<script src="' + bootHref + '/layui-v2.6.8/layui.js" type="text/javascript" charset="utf-8"></script>'+
    '<script src="' + bootHref + '/js/base.js?' + bootTime + '" type="text/javascript" charset="utf-8"></script>'+
    '<script src="' + bootHref + '/js/number.js?' + bootTime + '" type="text/javascript" charset="utf-8"></script>'+
    '<script src="' + bootHref + '/tooltip/tooltips.js" type="text/javascript" charset="utf-8"></script>'+
    '<script src="' + bootHref + '/viewer/viewer.js"></script>'+
    '<script src="' + bootHref + '/js/tableScroll.js"></script>'+
    '<script src="' + bootHref + '/js/tableScroll2.js"></script>'+
    '<script src="' + bootHref + '/js/pages/'+test+'.js?' + bootTime + '" type="text/javascript" charset="utf-8"></script>';
document.write(publicCSS + publicJS);
